<!DOCTYPE html>
<html>
    <head>
        
        {include file="public/header"}
    </head>
    
    <body>
        <div class="wrapper">
            {include file="public/nav"}  
            <div id="page-wrapper" style="min-height: 325px;">
                <div class="row">
	                <div class="col-lg-12">
	                    <h1 class="page-header">分类查看</h1>
	                </div>
	                <!-- /.col-lg-12 -->
                </div>
                <!-- /.row -->
                <div class="row">
	                <div class="col-lg-12">
                        <table width="100%" class="table table-striped table-bordered table-hover">
                            <thead>
                                <tr>
                                    <th>编号</th>
                                    <th>排序</th>
                                    <th>名称</th>
                                    <th>开启/关闭</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                {volist name="data" id="vo"}
                                <tr>
                                    <td>{$vo.cat_id}-{$vo.count}</td>
                                    <td>{$vo.cat_order}</td>
                                    <td>|{$vo.count | str_repeat="--",###}{$vo.cat_name}</td>
                                    <td>
                                        {switch name="vo.status"}
                                        {case value="1"}可用{/case}
                                        {case value="0"}禁用{/case}
                                        {/switch}
                                    </td>
                                    <td>
                                        <button type="button" class="btn btn-danger btn-xs">删除</button>
                                        <a href="edit.html?id={$vo.cat_id}" type="button" class="btn btn-success btn-xs">修改</a>
                                        <a a href="addchild.html?{$vo.cat_id}" type="button" class="btn btn-default btn-xs">添加子类</a>
                                    </td>

                                </tr>
                                {/volist}
                            </tbody>
                        </table>
	                </div>
	                <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
        </div>
        {include file="public/footer"}
        {include file="public/javascript"}
    </body>
</html>
